package top.leyi.entity.Talk;


import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.ArrayList;
import java.util.List;

public class SimpleTalk extends  Talk {
    private int id;
    private String content;
    private int likes;
    private String headPic;
    private int user_id;
    private String username;
    private String pics;

    private boolean isLike = false;

    private String time;



    @JsonIgnore
    private int score;

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int getLikes() {
        return likes;
    }

    @Override
    public void setLikes(int likes) {
        this.likes = likes;
    }

    @Override
    public String getHeadPic() {
        return headPic;
    }

    @Override
    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    @Override
    public int getUser_id() {
        return user_id;
    }

    @Override
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String getPics() {
        return pics;
    }

    @Override
    public void setPics(String pics) {
        this.pics = pics;
    }

    @Override
    public List getTalks() {
        return talks;
    }

    public void setTalks(List  talks) {
        this.talks = talks;
    }

    @Override
    public boolean isLike() {
        return isLike;
    }

    @Override
    public void setLike(boolean like) {
        isLike = like;
    }

    @Override
    public String getTime() {
        return time;
    }

    @Override
    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "SimpleTalk{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", likes=" + likes +
                ", headPic='" + headPic + '\'' +
                ", user_id=" + user_id +
                ", username='" + username + '\'' +
                ", pics='" + pics + '\'' +
                ", talks=" + talks +
                ", isLike=" + isLike +
                ", time='" + time + '\'' +
                '}';
    }
}
